package com.jinchengll.xigua;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

/**
 * 应用全局信息
 *
 * @author jinchengll
 * @since 2021/10/3
 */
public class XiguaApplication extends Application {

    // 全局Context
    @SuppressLint("StaticFieldLeak")
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
    }

    public static Context getContext() {
        return context;
    }
}
